<?php
$path = 'smiles/' . $_GET['f'];
if (file_exists($path))
{
    header('Last-Modified: ' . gmdate('D, d M Y H:i:s', time() - 36000));
    header('Expires: max-age=3600');
    header('Content-Type: ' . mime_content_type($path));
    echo file_get_contents($path);
}
else
{
    echo 'File not found!';
}
